package com.niuniu.ttms.order.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * 
 * @author ${author}
 * @email ${email}
 * @date 2020-09-21 16:56:31
 */
@Data
@TableName("t_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 订单ID
	 */
	@TableId
	private Long id;
	/**
	 * 票ID
	 */
	private Long ticketId;
	/**
	 * 处理日期
	 */
	private Date date;
	/**
	 * 处理时间
	 */
	private Date time;
	/**
	 * 票价
	 */
	private BigDecimal value;
	/**
	 * 交易类型 1-买票 -1-退票
	 */
	private Integer type;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;

}
